package com.westos.aopv1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringUtil {
    private static SpringUtil me;
    private ApplicationContext context;

    private SpringUtil(){
        context=new ClassPathXmlApplicationContext("spring.xml");
    }
    public static SpringUtil getInstance(){
        if(me==null){
            me=new SpringUtil();
        }
        return me;
    }

    public ApplicationContext getContext() {
        return context;
    }
}